Jx.declare('Jx.lib.Support', {

	$extend: 'Jx.lib.Detect',

	detected: undefined,

	constructor: function( platform ){

		if (!Jx.instanceOf(platform, 'Jx.lib.Detect')){

			throw Jx.createError('Detector is not a valid Jx.lib.Detect instance');

		} else if (!platform.is('capable')){

			throw Jx.createError('Detector: '+platform.constructor.$name+' is not capable of '+this.constructor.$name+' support ');

		} else {

			this.capable(true);

			this.detected = platform;

			this.$super();

		}

	},

	has: function(){

		return this.is.apply(this, arguments);

	}

});
